﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="list.aspx.vb" Inherits="Lens.list" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            font-family: "Segoe UI";
            font-size: x-large;
        height: 39px;
        width: 932px;
    }
        .style3
        {
            font-size: xx-large;
        }
    .style4
    {
        font-size: x-large;
        font-family: "Segoe UI";
    }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p class="style3">
        <strong><span class="style4">List of Photos</span></strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="Button1" runat="server" Text="View your Profile" />
    </p>
    <p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="ID" DataSourceID="lensPicSqlDataSource1" Width="880px" 
            style="margin-left: 8px; margin-right: 0px;" AllowPaging="True" 
            AllowSorting="True">
            <Columns>
                <asp:BoundField DataField="PictureTitle" HeaderText="Photo Title" 
                    SortExpression="PictureTitle" >
                <HeaderStyle BackColor="Black" ForeColor="White" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </asp:BoundField>
                <asp:HyperLinkField DataNavigateUrlFields="Location" 
                    DataNavigateUrlFormatString="http://en.wikipedia.org/wiki/{0}" 
                    DataTextField="Location" HeaderText="Location" >
                <HeaderStyle BackColor="Black" ForeColor="White" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </asp:HyperLinkField>
                <asp:HyperLinkField DataNavigateUrlFields="NameOfUploader" 
                    DataNavigateUrlFormatString="Profile.aspx?TravellerName={0}" 
                    DataTextField="NameOfUploader" HeaderText="Uploader">
                <HeaderStyle BackColor="Black" ForeColor="White" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </asp:HyperLinkField>
                <asp:HyperLinkField DataNavigateUrlFields="CameraUsed" 
                    DataNavigateUrlFormatString="http://www.amazon.co.uk/s/ref=nb_sb_noss?url=search-alias%3Daps&amp;field-keywords={0}" 
                    DataTextField="CameraUsed" HeaderText="Camera Used">
                <HeaderStyle BackColor="Black" ForeColor="White" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </asp:HyperLinkField>
                <asp:ImageField DataImageUrlField="Picture" HeaderText="Photo">
                    <ControlStyle CssClass="uploadedPicture" />
                    <HeaderStyle BackColor="Black" ForeColor="White" />
                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </asp:ImageField>
                <asp:HyperLinkField DataNavigateUrlFields="ID" 
                    DataNavigateUrlFormatString="detail.aspx?ID={0}" HeaderText="Detail" 
                    Text="Detail" >
                <HeaderStyle BackColor="Black" ForeColor="White" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </asp:HyperLinkField>
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="lensPicSqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:lensPicConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:lensPicConnectionString.ProviderName %>" 
            SelectCommand="SELECT [ID], [PictureTitle], [Location], [Description], [NameOfUploader], [CameraUsed], [Picture] FROM [lenspic]">
        </asp:SqlDataSource>
    </p>
    <p>
        &nbsp;</p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
<p>
    &nbsp;</p>
<p>
    &nbsp;</p>
<p>
    &nbsp;</p>
<p>
    &nbsp;</p>
</asp:Content>
